package question

//类两数之和

//1010. 总持续时间可被 60 整除的歌曲
func numPairsDivisibleBy60(time []int) int {
	m := make(map[int]int)
	count := 0

	for _, v := range time {
		k := v % 60
		count += m[(60-k)%60]
		m[k]++
	}
	return count
}
